package com.bestsoft.flow.service.impl;


import com.bestsoft.flow.domain.FlowZsDt;
import com.bestsoft.flow.mapper.FlowZsDtMapper;
import com.bestsoft.flow.service.IFlowZsDtService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * 追溯明细Service业务层处理
 *
 * @author 王识宇
 * @date 2023-08-30
 */
@Service
public class FlowZsDtServiceImpl implements IFlowZsDtService
{
    @Autowired
    private FlowZsDtMapper flowZsDtMapper;

    /**
     * 查询追溯明细列表
     *
     * @param qcode 追溯明细
     * @return 追溯明细
     */
    @Override
    public List<FlowZsDt> selectFlowZsDtList(String qcode)
    {
        return flowZsDtMapper.selectFlowZsDtList(qcode);
    }

    /**
     * 修改追溯明细
     *
     * @param flowZSDt 追溯信息
     * @return 结果
     */
    @Override
    public int updateFlowZSDt(FlowZsDt flowZSDt) {
        return flowZsDtMapper.updateFlowZSDt(flowZSDt);
    }

    /**
     * 修改追溯明细 erp
     *
     * @param flowZSDt 追溯信息
     * @return 结果
     */
    @Override
    public int updateFlowZSDtErp(FlowZsDt flowZSDt) {
        System.out.println("123456"+flowZSDt);

        flowZsDtMapper.updateFlowOrderDtErp(flowZSDt);

        return flowZsDtMapper.updateFlowZSDtErp(flowZSDt);
    }
    /**
     * 修改追溯明细 erp
     *
     * @param flowZSDt 追溯信息
     * @return 结果
     */
    @Override
    public int updateFlowOrderDtErp(FlowZsDt flowZSDt) {
        return flowZsDtMapper.updateFlowOrderDtErp(flowZSDt);
    }
}
